// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class WXEditor : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<WXEditor, MasterDbContextLocator>
    {

        public int WXEditorId { get; set; }
        public string EditorTitle { get; set; }
        public string CreateName { get; set; }
        public string EditorTxt { get; set; }
        public DateTime? CreateTime { get; set; }
        public DateTime? UpdateTime { get; set; }
        public string UserCode { get; set; }
        public string UserName { get; set; }
        public int Status { get; set; }
    
        public void Configure(EntityTypeBuilder<WXEditor> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasIndex(e => new { e.UpdateTime, e.CreateTime }, "IX_WXEditor");

                entityBuilder.HasIndex(e => new { e.EditorTitle, e.Status, e.CreateTime }, "Search_WXEditor");

                entityBuilder.Property(e => e.CreateName).HasMaxLength(100);

                entityBuilder.Property(e => e.CreateTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.EditorTitle).HasMaxLength(100);

                entityBuilder.Property(e => e.Status).HasDefaultValueSql("('0')");

                entityBuilder.Property(e => e.UpdateTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.UserCode).HasMaxLength(50);

                entityBuilder.Property(e => e.UserName).HasMaxLength(100);
        }

    }
}

